package leetcode.array;

import leetcode.array.common.ArrayUtils;

import java.util.List;

class Solution228 {
    public List<String> summaryRanges(int[] nums) {
        return ArrayUtils.summaryRanges(nums);
    }
}

public class leetcode228 {
    public static void main(String[] args) {
        Solution228 solution228 = new Solution228();
        int[] nums = {0, 1, 2, 4, 5, 7};
        int[] nums1 = {1, 2};
        test228(solution228, nums);
        test228(solution228, nums1);
    }

    private static void test228(Solution228 solution228, int[] nums) {
        List<String> strings = solution228.summaryRanges(nums);
        System.out.println(strings);
    }
}
